{#include file="admin_header.htm"#}
<script type="text/javascript" src="js/is_show.js"></script>
<div class="admin_main_nr_dbox">
    <table width="100%" border="0" cellpadding="5" cellspacing="0">
      <tr>
        <td width="533" height="25" style="font-size:14px;padding-left:20px;border-bottom:1px #CCCCCC solid;">提示：</td>
      </tr>
      <tr>
        <td height="25" style="font-size:12px;padding-left:20px; line-height:170%;">緩存是當查詢數據時候，會把結果序列化后保存到文件中，以后同樣的查詢就不用查詢數據庫，而是從緩存中獲得。這一改進使得程序速度得以太幅度提升。<br />
        緩存周期是緩存重新加載周期，周期越長，數據庫的負荷越小，緩存周期假設為50秒，則每50秒刷新緩存一次。</td>
      </tr>
      <tr>
        <td bgcolor="#F1F8FA" style=" line-height:180%; color:#666666; padding-left:20px;border-bottom:1px  #DFEDF7 solid;border-top:1px #DFEDF7 solid;"><label>
          基本設置</label></td>
      </tr>
      <tr>
        <td>
		<form action="admin_settings.php?act=save_cacheperiod" method="post" name="form1" id="form1">
		<table width="700" border="0" cellspacing="5" cellpadding="1" style=" margin-bottom:3px;">
          <tr>
            <td width="137" align="right">開啟緩存：</td>
            <td width="544"><label>
              <input name="caching" type="radio" id="caching" value="1"  {#if $cacheperiod.caching=="1"#}checked=checked {#/if#}  onclick="ckcaching();"/>
              是</label>
&nbsp;&nbsp;&nbsp;&nbsp;
<label>
<input type="radio" name="caching" value="0" id="caching"  {#if $cacheperiod.caching=="0"#}checked=checked{#/if#}  onclick="ckcaching();"/> 
否
</label></td>
          </tr>
          <tr id="show">
            <td align="right">自動清除緩存周期：</td>
            <td><input name="timing" type="text"  class="article_text_f" id="jobs_show" value="{#$cacheperiod.timing#}" onkeyup="if(event.keyCode !=37 &amp;&amp; event.keyCode != 39) value=value.replace(/\D/g,'');"   maxlength="10" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
              分鐘</td>
          </tr>
          <tr>
            <td align="right">&nbsp;</td>
            <td height="50"><span style="font-size:14px;">
              <input name="submit2" type="submit" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" value="保存修改"/>
            </span></td>
          </tr>
          
        </table>
		  </form>
		</td>
      </tr>
      <tr>
        <td bgcolor="#F1F8FA" style=" line-height:180%; color:#666666; padding-left:20px;border-bottom:1px  #DFEDF7 solid;border-top:1px #DFEDF7 solid;">頁面緩存周期設置 (如緩存關閉，以下設置將無效)</td>
      </tr>
    </table>
	  <form action="admin_settings.php?act=save_cacheperiod" method="post" name="form1" id="form1">
    <table width="700" border="0" cellspacing="5" cellpadding="1" style=" margin-bottom:3px;">
    <tr>
      <td width="138" align="right">首頁緩存：</td>
      <td width="543"><input name="index" type="text"  class="article_text_f" id="index" value="{#$cacheperiod.index#}" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"  maxlength="10" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
        秒 <span style="color:#666666">(0為不緩存)</span></td>
    </tr>
	    <tr>
      <td align="right">招聘信息詳細頁：</td>
      <td><input name="jobs_show" type="text"  class="article_text_f" id="jobs-show" value="{#$cacheperiod.jobs_show#}" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"   maxlength="10" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
	    秒 <span style="color:#666666">(0為不緩存)</span>	  </td>
    </tr>
    <tr>
      <td align="right">企業簡介頁面：</td>
      <td><input name="company" type="text"  class="article_text_f" id="company" value="{#$cacheperiod.company#}" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"  maxlength="10" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
	      秒 <span style="color:#666666">(0為不緩存)</span>	  </td>
    </tr>
	    <tr>
      <td align="right">企業電子地圖：</td>
      <td><input name="company_map" type="text"  class="article_text_f" id="company_map" value="{#$cacheperiod.company_map#}" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"  maxlength="10" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
	      秒 <span style="color:#666666">(0為不緩存)</span>	  </td>
    </tr>
	 <tr>
      <td align="right">簡歷詳細頁：</td>
      <td><input name="resume_show" type="text"  class="article_text_f" id="resume_show" value="{#$cacheperiod.resume_show#}" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"  maxlength="10" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
	      秒 <span style="color:#666666">(0為不緩存)</span>	  </td>
    </tr>
	 <tr>
      <td align="right">資訊首頁：</td>
      <td><input name="news" type="text"  class="article_text_f" id="news" value="{#$cacheperiod.news#}" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"  maxlength="10" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
	      秒 <span style="color:#666666">(0為不緩存)</span>	  </td>
    </tr>
		 <tr>
      <td align="right">資訊列表頁：</td>
      <td><input name="news_list" type="text"  class="article_text_f" id="news_list" value="{#$cacheperiod.news_list#}" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"  maxlength="10" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
	      秒 <span style="color:#666666">(0為不緩存)</span>	  </td>
    </tr>
	 <tr>
      <td align="right">資訊詳細頁：</td>
      <td><input name="news_show" type="text"  class="article_text_f" id="news_show" value="{#$cacheperiod.news_list#}" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"  maxlength="10" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
	      秒 <span style="color:#666666">(0為不緩存)</span>	  </td>
    </tr>
		 <tr>
      <td align="right">職位搜索頁：</td>
      <td><input name="jobs_search" type="text"  class="article_text_f" id="'jobs_search" value="{#$cacheperiod.jobs_search#}" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"  maxlength="10" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
	      秒 <span style="color:#666666">(0為不緩存)</span>	  </td>
    </tr>
			 <tr>
      <td align="right">簡歷搜索頁：</td>
      <td><input name="resume_search" type="text"  class="article_text_f" id="resume_search" value="{#$cacheperiod.resume_search#}" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"  maxlength="10" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
	      秒 <span style="color:#666666">(0為不緩存)</span>	  </td>
    </tr>
 <tr>
      <td align="right">說明頁緩存時間：</td>
      <td><input name="explain_show" type="text"  class="article_text_f" id="explain_show" value="{#$cacheperiod.explain_show#}" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"  maxlength="10" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
	      秒 <span style="color:#666666">(0為不緩存)</span>	  </td>
    </tr>
 <tr>
   <td align="right">&nbsp;</td>
   <td><span style="font-size:14px;">
     <input name="submit" type="submit" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" value="保存修改"/>
   </span></td>
 </tr>
  </table>
</form>
</div>
{#include file="admin_footer.htm"#}
<script>
//獲取單選的值
function radios_val(val)
    {
        var radios=document.getElementsByName(val);
        for(var i=0;i<radios.length;i++)
        {
            if(radios[i].checked==true)
            {
			return radios[i].value;
            break;
            }
        }
    }
ckcaching();
function ckcaching()
{
var caching_val=radios_val("caching");
if (caching_val=="1")
{
 document.getElementById("show").style.display="";   
}
else
{
document.getElementById("show").style.display="none";   
}
}
function $(s) {
    return document.getElementById(s);
}
function $$(s) {
    return document.getElementsByName(s);
}
</script>
</body>
</html>
